@import './public.scss';
@import './publicHeader.scss';
@import './publicFooter.scss';
@import '../libs/Page/css/page.css';

body{
    background-color:#ededed;
}

nav{
    position: sticky;
    z-index: 20;
    top:0px;
    height: 75px;
    background-color: #fff;
    box-shadow: 0 4px 10px 0 rgba(0,0,0,.1);
    ul{
        float: left;
        margin-top: 29px;
        >li{
            float: left;
            margin-right: 30px;
            &.active>a{
                font-weight: 700;
            }
            >a{
                font-size: 14px;
                color: #4c4c4c;
                &:hover{
                    color: #e7d9b7;
                    text-decoration: none;
                }
            }
        }
    }
    form{
        position: relative;
        float: right;
        margin-top: 19px;
        height: 36px;
        width: 330px;
        border: 1px solid #ebebeb;
        border-radius: 18px;
        >#title{
            display: none;
            position: absolute;
            top: 10px;
            z-index: 999;
            width: 100%;
            border: 1px solid #ebebeb;
            border-top-style:none;
            background-color: #fff;
            border-radius:0 0 10px 10px;
            >li{
                width: 100%;
                box-sizing: border-box;
                padding: 10px 15px;
                border-top: 1px solid #ebebeb;
                font-size: 14px;
                color: skyblue;
                cursor: pointer;
                &:hover{
                    background-color: #e5e5e5;
                }
            }
        }
        >.search-icon{
            float: left;
            width: 20px;
            height: 20px;
            cursor: pointer;
            background-image:-webkit-image-set(url() 1x,url() 2x);
            margin: 7px 10px;
        }
        >input{
            float: left;
            width: 232px;
            height: 34px;
            background-color: transparent;
            border-style: none;
            outline: none;
        }
        >.links{
            float: right;
            font-size: 12px;
            margin-left: -100%;
            margin-top: 7px;
            >a{
                float: left;
                padding: 0px 10px;
                border: 1px solid;
                border-radius: 9px;
                margin-right: 8px;
                &:hover{
                    text-decoration: none;
                }
            }
        }
    }
    .nav-info-warp{
         display: none;
         position: absolute;
         z-index: 21;
         width: 100%;
         top: 75px;
         max-height: 266px;
         background-color: #fff;
         padding-top: 30px;
         border-top: 1px solid rgba(0,0,0,.1);
         border-bottom: 1px solid rgba(0,0,0,.1);
         >ul{
             position: relative;
             left: 50%;
             transform: translateX(-50%);
             display: flex;
             justify-content: center;
             box-sizing: border-box;
             padding: 0 95px;
             >li{
                 display: flex;
                 flex-direction: column;
                 flex-wrap: wrap;
                 flex-grow: 1;
                 >h3{
                     font-weight: normal;
                     font-size: 12px;
                     color: #999;
                 }
                 >ul{
                     margin-top: 10px;
                     display: flex;
                     flex-direction: column;
                     flex-wrap: wrap;
                     flex-grow: 1;
                     >li{
                         cursor: pointer;
                         font-size: 14px;
                         font-weight: 700;
                         margin-bottom: 10px;
                         display: flex;
                         align-items: center;
                        img{
                            width: 40px;
                            height: 40px;
                        }
                         >span{
                             margin-left: 10px;
                         }
                     }
                 }
             }
         }
     }
}

.list{
    >.sort{
        font-size: 12px;
        padding: 15px 0;
        >i{
            margin: 0 13px;
            font-weight: bolder;
        }
        >span.active{
            color: #5683ea;
        }
        >span:hover{
            color: #5683ea;
        }
        >span{
            cursor: pointer;
        }
    }
    h1{
        width: 100%;
        background-color: #ededed;
    }
    >.listContent{
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        flex-wrap: wrap;
        >li{
            position: relative;
            width: 25%;
            padding: 45px 15px 0;
            box-sizing: border-box;
            flex-shrink: 0;
            border-right: 1px solid #dadada;
            border-bottom: 1px solid #dadada;
            min-height: 430px;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: background-color .5s;
            a{
                display: flex;
                justify-content: center;
                >img{
                    width: 216px;
                    height: 216px;
                }
            }
            &:nth-child(4n){
                border-right:none;
            }
            &:hover{
                background-color:#e5e5e5;
            }
            >.huodong{
                position: absolute;
                right: 0;
                top: 0;
                padding: 3px 8px;
                background-color: rgba(255,0,0,.5);
                font-size: 12px;
            }
            >.title{
                width: 100%;
                margin-top: 20px;
                font-weight: bold;
                font-size: 14px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            >p{
                width: 100%;
                height: 20px;
                font-weight: bold;
                font-size: 14px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                margin: 10px 0;
                font-size: 12px;
                color: #999;
            }
            >.style{
                position: relative;
                display: flex;
                margin: 10px 0;
                >span{
                    position: absolute;
                    display: none;
                    left: 50%;
                    transform: translateX(-50%);
                    top: -35px;
                    font-size: 12px;
                    color:#fafafa;
                    background-color: rgb(146, 146, 118);
                    width: 58px;
                    height: 28px;
                    text-align: center;
                    line-height: 28px;
                    border: 1px solid #dbdbdb;
                    border-radius: 5px;
                }
                button{
                    width: 95px;
                    height: 38px;
                    border: 1px solid #dbdbdb;
                    background-color: rgb(179, 200, 135);
                    border-radius: 7px;
                    color: #fafafa;
                    font-weight: 700;
                    cursor: pointer;
                    outline: none;
                    &:hover{
                        background-color: rgb(154, 202, 57);
                    }
                    &:active{
                        background-color:rgba(154, 202, 57,.7);
                    }
                }
            }
            >.price{
                font-size: 18px;
                font-weight: bolder;
                color: #d44d44;
                >i{
                    font-size: 12px;
                    font-weight: normal;
                    color: #999;
                    text-decoration:line-through;
                }
            }
        }
    }
}
